package lean;
import java.util.Arrays;
import java.util.Scanner;
public class ur {
    public static void main(String[] args){
        //Scanner scanner=new Scanner(System.in);
        //System.out.println("请输入数组的元素:");
        int num[]=new int[5];
        for(int i=0;i<5;i++){
        System.out.println("请输入数组的元素:");
            Scanner scanner=new Scanner(System.in);
         num[i]=scanner.nextInt();
         //System.out.println("输出数组的元素");
         //Arrays.sort(num);
         //System.out.println(Arrays.toString(num));

    }
        Arrays.sort(num);
        System.out.println(Arrays.toString(num));

}

}
